package net.huashitong.supervision.task.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.supervision.task.dao.EvalRuleDao;
import net.huashitong.supervision.task.entity.EvalRules;
import net.huashitong.supervision.task.filter.EvalRulesFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvalRuleService extends StringPKService<EvalRules> {

    @Autowired
    private EvalRuleDao dao;
    @Override
    protected BaseDao<EvalRules, String> getDao() {
        return dao;
    }

    /*
        按条件获取查询结果
     */
    public List<EvalRules> getEvalRules(EvalRulesFilter filter){
        return dao.queryEvalRules(filter);
    }


}
